package xixirupan.tmgp.tencent.com.vmeim.login.view;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import xixirupan.tmgp.tencent.com.vmeim.R;

public class LoginActivity extends AppCompatActivity {

    @BindView(R.id.login_gobackicon)
    ImageView loginGobackicon;
    @BindView(R.id.login_button)
    Button loginButton;
    @BindView(R.id.loginbymsg)
    TextView loginbymsg;
    @BindView(R.id.forgetpsw)
    TextView forgetpsw;
    @BindView(R.id.fast_registor)
    TextView fastRegistor;
    @BindView(R.id.login_wenxin)
    ImageView loginWenxin;
    @BindView(R.id.login_weibo)
    ImageView loginWeibo;
    @BindView(R.id.login_taobao)
    ImageView loginTaobao;
    @BindView(R.id.login_qq)
    ImageView loginQq;
    @BindView(R.id.login_zfb)
    ImageView loginZfb;
    @BindView(R.id.sf)
    LinearLayout sf;
    @BindView(R.id.rightline)
    TextView rightline;
    @BindView(R.id.company)
    TextView company;
    @BindView(R.id.leftline)
    TextView leftline;
    @BindView(R.id.activity_login)
    RelativeLayout activityLogin;
    @BindView(R.id.edit_account)
    EditText editAccount;
    @BindView(R.id.edit_psw)
    EditText editPsw;
     private Unbinder bind;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
       bind = ButterKnife.bind(this);
    }

    @OnClick({R.id.login_gobackicon, R.id.login_button, R.id.loginbymsg, R.id.forgetpsw, R.id.fast_registor, R.id.login_wenxin, R.id.login_weibo, R.id.login_taobao, R.id.login_qq, R.id.login_zfb})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.login_gobackicon:
                break;
            case R.id.login_button:
                break;
            case R.id.loginbymsg:
                break;
            case R.id.forgetpsw:
                break;
            //快速注册的跳转界面
            case R.id.fast_registor:
                startNewActivity(RegistorActivity.class);
                break;
            case R.id.login_wenxin:
                break;
            case R.id.login_weibo:
                break;
            case R.id.login_taobao:
                break;
            case R.id.login_qq:
                break;
            case R.id.login_zfb:
                break;
        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        bind.unbind();
    }

    public void startNewActivity(Class<? extends Activity> clazz)
    {
        Intent intent =new Intent(this,clazz);
        startActivity(intent);
    }
}
